home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / biblio / tib / inputs / stdftl.ttx < prev    next >
Text File  |  1989-03-28  |  13KB  |  168 lines

  1. %standard reference formatting macros (LaTeX)
  2. %flag, author, title, etc., volume, pages, date, gov't no., other
  3. %
  4. %note: remove characters (%%%) from lines below (6 times)
  5. %%%            \if\Ttest\present\bgroup``\Titlefont\Tstr\egroup," \fi%
  6. %if titles desired in loc. cit.
  7.  
  8. \def\journalarticleformat{\footnotetext{\Reffont\let\uchyph=1\parindent=0pt\def\Comma{}%
  9.                 \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\:=1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
  10.           \if\Loccittest\present\if\Ibidtest\present{\it ibid.}\else%
  11.            \if\Atest\present\bgroup\Authfont\Astr\egroup, \fi%
  12. %%%           \if\Ttest\present\bgroup``\Titlefont\Tstr\egroup," \fi%
  13.               {\it loc.\ cit.}\fi%
  14.             \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip.\fi\else%
  15.        \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{\unskip, }\fi%
  16.         \if\Ttest\present\Comma\bgroup``\Titlefont\Tstr\egroup\def\Comma{," }\fi%
  17.          \if\etest\present\if\Ttest\present{"}\fi\hskip.2em(\bgroup\estr\egroup)\def\Comma{\unskip, }\fi%
  18.           \if\Jtest\present\Comma\bgroup\Tomefont\Jstr\/\egroup\def\Comma{, }\fi%
  19.            \if\Vtest\present\if\Jtest\present\hskip.2em\else\Comma\fi\bgroup\Volfont\Vstr\egroup\def\Comma{, }\fi%
  20.             \if\Dtest\present\hskip.2em(\bgroup\Dstr\egroup)\def\Comma{, }\fi%
  21.              \if\Ptest\present\bgroup, \Pstr\egroup\def\Comma{, }\fi%
  22.               \if\ttest\present\Comma\bgroup``\Titlefont\tstr\egroup\def\Comma{," }\fi%
  23.                \if\jtest\present\Comma\bgroup\Tomefont\jstr\/\egroup\def\Comma{, }\fi%
  24.                 \if\vtest\present\if\jtest\present\hskip.2em\else\Comma\fi\bgroup\Volfont\vstr\egroup\def\Comma{, }\fi%
  25.                  \if\dtest\present\hskip.2em(\bgroup\dstr\egroup)\def\Comma{, }\fi%
  26.                   \if\ptest\present\bgroup, \pstr\egroup\def\Comma{, }\fi%
  27.                    \if\Gtest\present{\Comma Gov't ordering no. }\bgroup\Gstr\egroup\def\Comma{, }\fi%
  28.                     \if\Otest\present\Comma\bgroup\Ostr\egroup\fi%
  29.                      \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip\fi.\fi}}
  30.  
  31. \def\conferencereportformat{\footnotetext{\Reffont\let\uchyph=1\parindent=0pt\def\Comma{}%
  32.                 \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\:=1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
  33.           \if\Loccittest\present\if\Ibidtest\present{\it ibid.}\else%
  34.            \if\Atest\present\bgroup\Authfont\Astr\egroup, \fi%
  35. %%%           \if\Ttest\present\bgroup``\Titlefont\Tstr\egroup," \fi%
  36.               {\it loc.\ cit.}\fi%
  37.             \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip.\fi\else%
  38.        \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{\unskip, }\fi%
  39.         \if\Ttest\present\Comma\bgroup``\Titlefont\Tstr\egroup\def\Comma{," }\fi%
  40.          \if\Jtest\present\Comma\bgroup\Tomefont\Jstr\/\egroup\def\Comma{, }\fi%
  41.           \if\Ctest\present\Comma\bgroup\Cstr\egroup\def\Comma{, }\fi%
  42.            \if\Dtest\present\hskip.2em(\bgroup\Dstr\egroup)\def\Comma{, }\fi%
  43.             \if\Otest\present\Comma\bgroup\Ostr\egroup\fi%
  44.              \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip\fi.\fi}}
  45.  
  46. \def\bookarticleformat{\footnotetext{\Reffont\let\uchyph=1\parindent=0pt\def\Comma{}%
  47.                 \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\:=1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
  48.           \if\Loccittest\present\if\Ibidtest\present{\it ibid.}\else%
  49.            \if\Atest\present\bgroup\Authfont\Astr\egroup, \fi%
  50. %%%           \if\Ttest\present\bgroup``\Titlefont\Tstr\egroup," \fi%
  51.               {\it loc.\ cit.}\fi%
  52.             \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip.\fi\else%
  53.        \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{\unskip, }\fi%
  54.         \if\Ttest\present\Comma\bgroup``\Titlefont\Tstr\egroup\def\Comma{," }\fi%
  55.          \if\etest\present\if\Ttest\present"\fi\hskip.2em(\bgroup\estr\egroup)\def\Comma{\unskip, }\fi%
  56.           \if\Btest\present\Comma in \bgroup\Tomefont\Bstr\/\egroup\def\Comma{\unskip, }\fi%
  57.            \if\otest\present\ \bgroup\ostr\egroup\def\Comma{, }\fi%
  58.             \if\Etest\present\Comma\bgroup\Estr\egroup\unskip, \ifnum\Ecnt>1eds.\else ed.\fi\def\Comma{, }\fi%
  59.              \if\Stest\present\Comma\bgroup\Sstr\egroup\def\Comma{, }\fi%
  60.               \if\Vtest\present\bgroup\hskip.2em\#\Volfont\Vstr\egroup\def\Comma{, }\fi%
  61.                \if\Ntest\present\bgroup\hskip.2em\#\Volfont\Nstr\egroup\def\Comma{, }\fi%
  62.                 \if\Itest\present\Comma\bgroup\Istr\egroup\def\Comma{, }\fi%
  63.                  \if\Ctest\present\Comma\bgroup\Cstr\egroup\def\Comma{, }\fi%
  64.                   \if\Dtest\present\Comma\bgroup\Dstr\egroup\def\Comma{, }\fi%
  65.                    \if\Ptest\present\Comma\Pstr\def\Comma{, }\fi%
  66.                     \if\ttest\present\Comma\bgroup``\Titlefont\Tstr\egroup\def\Comma{," }\fi%
  67.                      \if\btest\present\Comma in \bgroup\Tomefont\bstr\egroup\def\Comma{, }\fi%
  68.                       \if\atest\present\Comma\bgroup\astr\egroup\unskip, \if\acnt\present eds.\else ed.\fi\def\Comma{, }\fi%
  69.                        \if\stest\present\Comma\bgroup\sstr\egroup\def\Comma{, }\fi%
  70.                         \if\vtest\present\bgroup\hskip.2em\#\Volfont\vstr\egroup\def\Comma{, }\fi%
  71.                          \if\ntest\present\bgroup\hskip.2em\#\Volfont\nstr\egroup\def\Comma{, }\fi%
  72.                         \if\itest\present\Comma\bgroup\istr\egroup\def\Comma{, }\fi%
  73.                          \if\ctest\present\Comma\bgroup\cstr\egroup\def\Comma{, }\fi%
  74.                           \if\dtest\present\Comma\bgroup\dstr\egroup\def\Comma{, }\fi%
  75.                            \if\ptest\present\Comma\pstr\def\Comma{, }\fi%
  76.                             \if\Gtest\present{\Comma Gov't ordering no. }\bgroup\Gstr\egroup\def\Comma{, }\fi%
  77.                              \if\Otest\present\Comma\bgroup\Ostr\egroup\fi%
  78.                               \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip\fi.\fi}}
  79.  
  80. \def\bookformat{\footnotetext{\Reffont\let\uchyph=1\parindent=0pt\def\Comma{}%
  81.                 \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\:=1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
  82.           \if\Loccittest\present\if\Ibidtest\present{\it ibid.}\else%
  83.            \if\Atest\present\bgroup\Authfont\Astr\egroup, %
  84.                 \else\if\Etest\present\bgroup\def\Eand{\Aand}\def\Eandd{\Aandd}\Authfont\Estr\egroup\unskip, \ifnum\Ecnt>1eds.\else ed.\fi, %
  85.                       \else\if\Itest\present\bgroup\Authfont\Istr\egroup, \fi\fi\fi%
  86. %%%           \if\Ttest\present\bgroup``\Titlefont\Tstr\egroup," \fi%
  87.               {\it loc.\ cit.}\fi%
  88.             \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip.\fi\else%
  89.        \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{\unskip, }%
  90.             \else\if\Etest\present\bgroup\def\Eand{\Aand}\def\Eandd{\Aandd}\Authfont\Estr\egroup\unskip, \ifnum\Ecnt>1eds.\else ed.\fi\def\Comma{, }%
  91.                   \else\if\Itest\present\bgroup\Authfont\Istr\egroup\def\Comma{, }\fi\fi\fi%
  92.           \if\Ttest\present\Comma\bgroup\Tomefont\Tstr\/\egroup\def\Comma{\unskip, }%
  93.                 \else\if\Btest\present\Comma\bgroup\Tomefont\Bstr\/\egroup\def\Comma{\unskip, }\fi\fi%
  94.             \if\otest\present\ \bgroup\ostr\egroup\def\Comma{, }\fi%
  95.              \if\etest\present\hskip.2em(\bgroup\estr\egroup)\def\Comma{\unskip, }\fi%
  96.               \if\Stest\present\Comma\bgroup\Sstr\egroup\def\Comma{, }\fi%
  97.                \if\Vtest\present\bgroup\hskip.2em\#\Volfont\Vstr\egroup\def\Comma{, }\fi%
  98.                 \if\Ntest\present\bgroup\hskip.2em\#\Volfont\Nstr\egroup\def\Comma{, }\fi%
  99.                  \if\Atest\present\if\Itest\present
  100.                          \Comma\bgroup\Istr\egroup\def\Comma{\unskip, }\fi%
  101.                       \else\if\Etest\present\if\Itest\present
  102.                               \Comma\bgroup\Istr\egroup\def\Comma{\unskip, }\fi\fi\fi%
  103.                      \if\Ctest\present\Comma\bgroup\Cstr\egroup\def\Comma{, }\fi%
  104.                       \if\Dtest\present\Comma\bgroup\Dstr\egroup\def\Comma{, }\fi%
  105.                        \if\ttest\present\Comma\bgroup\Tomefont\tstr\egroup\def\Comma{, }%
  106.                              \else\if\btest\present\Comma\bgroup\Tomefont\bstr\egroup\def\Comma{, }\fi\fi%
  107.                           \if\stest\present\Comma\bgroup\sstr\egroup\def\Comma{, }\fi%
  108.                            \if\vtest\present\bgroup\hskip.2em\#\Volfont\vstr\egroup\def\Comma{, }\fi%
  109.                             \if\ntest\present\bgroup\hskip.2em\#\Volfont\nstr\egroup\def\Comma{, }\fi%
  110.                              \if\itest\present\Comma\bgroup\istr\egroup\def\Comma{, }\fi%
  111.                               \if\ctest\present\Comma\bgroup\cstr\egroup\def\Comma{, }\fi%
  112.                                \if\dtest\present\Comma\bgroup\dstr\egroup\def\Comma{, }\fi%
  113.                                 \if\Gtest\present{\Comma Gov't ordering no. }\bgroup\Gstr\egroup\def\Comma{, }\fi%
  114.                                  \if\Otest\present\Comma\bgroup\Ostr\egroup\fi%
  115.                                   \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip\fi.\fi}}
  116.  
  117. \def\technicalreportformat{\footnotetext{\Reffont\let\uchyph=1\parindent=0pt\def\Comma{}%
  118.                 \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\:=1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
  119.           \if\Loccittest\present\if\Ibidtest\present{\it ibid.}\else%
  120.            \if\Atest\present\bgroup\Authfont\Astr\egroup, %
  121.                 \else\if\Etest\present\bgroup\def\Eand{\Aand}\def\Eandd{\Aandd}\Authfont\Estr\egroup\unskip, \ifnum\Ecnt>1eds.\else ed.\fi, %
  122.                       \else\if\Itest\present\bgroup\Authfont\Istr\egroup, \fi\fi\fi%
  123. %%%           \if\Ttest\present\bgroup``\Titlefont\Tstr\egroup," \fi%
  124.               {\it loc.\ cit.}\fi%
  125.             \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip.\fi\else%
  126.        \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{\unskip, }%
  127.             \else\if\Etest\present\bgroup\def\Eand{\Aand}\def\Eandd{\Aandd}\Authfont\Estr\egroup\unskip, \ifnum\Ecnt>1eds.\else ed.\fi\def\Comma{, }%
  128.                   \else\if\Itest\present\bgroup\Authfont\Istr\egroup\def\Comma{, }\fi\fi\fi%
  129.           \if\Ttest\present\Comma\bgroup``\Titlefont\Tstr\egroup\def\Comma{," }\fi%
  130.            \if\Atest\present\if\Itest\present
  131.                    \Comma\bgroup\Istr\egroup\def\Comma{, }\fi%
  132.                 \else\if\Etest\present\if\Itest\present
  133.                         \Comma\bgroup\Istr\egroup\def\Comma{, }\fi\fi\fi%
  134.             \if\Rtest\present\Comma\bgroup\Rstr\egroup\def\Comma{, }\fi%
  135.              \if\Ctest\present\Comma\bgroup\Cstr\egroup\def\Comma{, }\fi%
  136.               \if\Dtest\present\Comma\bgroup\Dstr\egroup\def\Comma{, }\fi%
  137.                \if\ttest\present\Comma\bgroup``\Titlefont\tstr\egroup\def\Comma{," }\fi%
  138.                 \if\itest\present\Comma\bgroup\istr\egroup\def\Comma{, }\fi%
  139.                  \if\rtest\present\Comma\bgroup\rstr\egroup\def\Comma{, }\fi%
  140.                   \if\ctest\present\Comma\bgroup\cstr\egroup\def\Comma{, }\fi%
  141.                    \if\dtest\present\Comma\bgroup\dstr\egroup\def\Comma{, }\fi%
  142.                     \if\Gtest\present{\Comma Gov't ordering no. }\bgroup\Gstr\egroup\def\Comma{, }\fi%
  143.                      \if\Otest\present\Comma\bgroup\Ostr\egroup\fi%
  144.                       \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip\fi.\fi}}
  145.  
  146. \def\otherformat{\footnotetext{\Reffont\let\uchyph=1\parindent=0pt\def\Comma{}%
  147.                 \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\:=1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
  148.           \if\Loccittest\present\if\Ibidtest\present{\it ibid.}\else%
  149.            \if\Atest\present\bgroup\Authfont\Astr\, egroup%
  150.                 \else\if\Etest\present\bgroup\def\Eand{\Aand}\def\Eandd{\Aandd}\Authfont\Estr\egroup\unskip, \ifnum\Ecnt>1eds.\else ed.\fi, %
  151.                       \else\if\Itest\present\bgroup\Authfont\Istr\egroup, \fi\fi\fi%
  152. %%%           \if\Ttest\present\bgroup``\Titlefont\Tstr\egroup," \fi%
  153.               {\it loc.\ cit.}\fi%
  154.             \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip.\fi\else%
  155.        \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{\unskip, }%
  156.             \else\if\Etest\present\bgroup\def\Eand{\Aand}\def\Eandd{\Aandd}\Authfont\Estr\egroup\unskip, \ifnum\Ecnt>1eds.\else ed.\fi\def\Comma{, }%
  157.                   \else\if\Itest\present\bgroup\authfont\Istr\egroup\def\Comma{, }\fi\fi\fi%
  158.           \if\Ttest\present\Comma\bgroup``\Titlefont\Tstr\egroup\def\Comma{," }\fi%
  159.             \if\Atest\present\if\Itest\present
  160.                     \Comma\bgroup\Istr\egroup\def\Comma{, }\fi%
  161.                  \else\if\Etest\present\if\Itest\present
  162.                          \Comma\bgroup\Istr\egroup\def\Comma{, }\fi\fi\fi%
  163.                  \if\Ctest\present\Comma\bgroup\Cstr\egroup\def\Comma{, }\fi%
  164.                   \if\Dtest\present\Comma\bgroup\Dstr\egroup\def\Comma{, }\fi%
  165.                    \if\Gtest\present{\Comma Gov't ordering no. }\bgroup\Gstr\egroup\def\Comma{, }\fi%
  166.                     \if\Otest\present\Comma\bgroup\Ostr\egroup\fi%
  167.                      \if\Ztest\present\bgroup\ignorespaces\Zstr\egroup\gdef\Ztest{}\unskip\fi.\fi}}
  168.